package BusinessLogic;

import java.util.ArrayList;
import java.util.Date;

import Data.GoodData;
import Data.SaleRecordData;
import Data.UserData;

public interface ISaleModel {

	public UserData getUserInformation(int UserID);
	public GoodData getGoodInformation(int GoodID);
	public String searchUserInformationByID(int ID);
	public String searchGoodInformationByID(int ID);
	public boolean addItem(int id,String name,double price,int num,double specialPrice,String date);
	public boolean removeItem(String goodID);
	public double buy();
	public boolean startUpdate();
	public boolean checkSpecialTime(String startTime,String endTime);
	public String getGoodDescriptionByID(int ID);
	public double getGoodPriceByID(int ID);
	public double getGoodSpecialPriceByID(int ID);
	public String getGoodSpecialTimeStartByID(int ID);
	public String getGoodSpecialTimeEndByID(int ID);
	public double getGoodNumberByID(int ID);
	public String getUserNameByID(int ID);
	public String getUserPasswordByID(int ID);
	public int getNextSaleID();
	public ArrayList<SaleRecordData> readSaleRecordDataBySaleID(int ID);
}
